package kr.hkit.powerjava.chapter12;

public class InterfaceMain {
	public static void main(String[] args) {
		Tv tv = new Tv();
		Car car = new Car();
		
		RemoteControl[] rc = new RemoteControl[2];
		
		rc[0] = tv;
		rc[1] = car;
		
		for(RemoteControl r : rc){
			r.turnOn();
			r.turnOff();
		}
	}
}
